<?php

/**
 * Things have changed. There won'e be two streams and damn this world for all the time i spent thinking how to implement
 * the clicking of two things without putting too much load on the server. 
 */
 
 if(isset($_POST['ajax']))
 {
	session_start();
	$user = $_SESSION['user'];
	require_once("../connection.php");
 }

if(!$user)
{
	echo '<span class="small-font">Oh snap! Are you logged in my friend?! Try <a href="login.php">this</a></span>';
}
else
{
	?>	
	<div id="menu1content" class="nav_content" style="padding:20px">	
		<script type="text/javascript">
		$(function(){
			init_stream(<?php echo $user; ?>,"home");
		});
		</script>
		<div id="stream_home"><img src="images/22.gif" /></div>		
	</div>	
	<?php
}
?>